use hierarchy with cmake. (#807)
authortsteven4 <13596209+tsteven4@users.noreply.github.com>
Sun, 2 Jan 2022 23:51:03 +0000 (16:51 -0700)
committerGitHub <noreply@github.com>
Sun, 2 Jan 2022 23:51:03 +0000 (16:51 -0700)
commitf85b37e310b2e14d37e04618cc853d1d82079982
tree3c3fc0fe2c99cb346e619d62d7b86b1ee74f15e0
parent4ebfea3d358eb22e62a1de0740eefbfc5db197af
use hierarchy with cmake. (#807)

* use hierarchy with cmake.

* adjust cmake test script for hierarchy.

the default target with cmake builds both the CLI and the GUI.
alternatively, "cmake --build . --target gpsbabel" to build just the
CLI or "cmake --build . --target GPSBabelFE|gpsbabelfe to build just
the GUI.

* detect attempts to generate a build system from a subdirectory.

* fix shellcheck issues.
13 files changed:
.github/workflows/fedora.yml
.github/workflows/ubuntu.yml
CMakeLists.txt
GPSBabel.pro
build_and_test [deleted file]
gbversion.cmake
gui/CMakeLists.txt
tools/build_and_test.sh [new file with mode: 0755]
tools/build_and_test_cmake [deleted file]
tools/build_and_test_cmake.sh [new file with mode: 0755]
tools/build_extra_tests [deleted file]
tools/build_extra_tests.sh [new file with mode: 0755]
tools/make_windows_release.ps1